/*   Shotscreens
 *   Copyright (C) 2010, Vadim Zakondyrin (http://crystalnix.com)
 *
 *   This program is free software: you can redistribute it and/or modify
 *   it under the terms of the GNU General Public License as published by
 *   the Free Software Foundation, either version 3 of the License, or
 *   (at your option) any later version.
 *
 *   This program is distributed in the hope that it will be useful,
 *   but WITHOUT ANY WARRANTY; without even the implied warranty of
 *   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 *   GNU General Public License for more details.
 *
 *   You should have received a copy of the GNU General Public License
 *   along with this program.  If not, see <http://www.gnu.org/licenses/>.
 */

#ifndef FTP_H
#define FTP_H

#include "../../pluginSDK/UploaderInterface.h"

class FTP : public QObject, public UploaderInterface
{
    Q_OBJECT
    Q_INTERFACES(UploaderInterface)

public:
    FTP(QObject *parent = 0);
    bool uploadMemory(const QByteArray &data);
    bool uploadFile(const QString &) { return true; }
    bool saveSettings(QSettings *) { return true; }
    bool loadSettings(const QSettings *) { return true; }
    bool ShowOptions();
    bool ShowAbout();
    void setLoginAndPassword(const QString &login, const QString &password);
    bool GetPluginVersion(int &version, int &subversion);
    inline QString getLogin() const { return login; }
    inline QString getPassword() const { return password; }
    inline QString getNameOfService() const { return nameOfService; }
private:
    QString nameOfService;
    QString login;
    QString password;
};

#endif // FTP_H
